#ifndef CUSTOM_SP_H
#define CUSTOM_SP_H

#include "levenshtein.h"

#include <string>
#include <vector>
#include <iostream>
#include <map>

class Dictionary
{
public:
    typedef std::vector<std::string> RawDictionary;

    void loadDictionary(std::istream& stream);
    std::string nearestNeighbor(const std::string& word) const;
private:
    typedef std::map<int, RawDictionary> Dict;
    Dict _dictionary;
};

#endif //CUSTOM_SP_H
